home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0480.dms / q0480.adf / prephdo < prev    next >
AmigaDOS Script File  |  1993-06-15  |  2KB  |  55 lines

  1. .key drive
  2. .bra {
  3. .ket }
  4. .def drive 0
  5. failat 31
  6. echo "A1200 Hard Disk Prep."
  7. echo "*NThis will low-level format your hard disk (SCSI unit {drive})."
  8. echo "The drive will be re-partitioned to the standard configuration."
  9. echo "This software is intended for use with Commodore hard disk"
  10. echo "controllers."
  11. echo "If you continue, any information on the hard disk will be lost."
  12. ask "*NAre you sure you want to continue ?"
  13. if not warn
  14.     echo "Operation cancelled."
  15.     skip exit
  16. endif
  17.  
  18. :Prod_prep Unit {drive} layout :PrepScript
  19. set return `echo $RC`
  20. if val "$return" EQ 1
  21.     echo "*NUnable to open SCSI Unit {drive}."
  22.     echo "Please check your hardware and try again."
  23.     skip exit
  24. endif
  25.  
  26. if val "$return" GE 10
  27.     echo "*NAttempting to prep the hard disk failed."
  28.     echo "Please check your hardware and try again."
  29.     skip exit
  30. endif
  31.  
  32. if val "$return" GE 5
  33.     ; there's something already there and not enough room.
  34.     echo "*NCan't fit new partition on hard drive because"
  35.     echo "other partitions have used up all the space."
  36.     ask "*NDo you want to overwrite all the other partitions ?"
  37.     if not warn
  38.         echo "Operation cancelled."
  39.         echo "NOTE: You may have to use HDToolBox to adjust the"
  40.         echo "partition sizes manually."
  41.         skip exit
  42.     endif
  43.     :Prod_prep >NIL: Unit {drive} layout :PrepScriptForce
  44.     set return `echo $RC`
  45. endif
  46.  
  47. if val "$return" GE 10
  48.     echo "*NAttempting to prep the hard disk failed."
  49.     echo "Please check your hardware and try again."
  50. else
  51.     echo "*NHard disk prep completed."
  52.     echo "*NPlease reboot the machine and run the FormatHD utility."
  53. endif
  54. lab exit
  55.